Server Install Instructions

New Install:
------------
1. On the server, make a new folder in the Mods folder (located in the CoD4 root) and name it pam4.  Your new folder should be in the same folder that contains the 'ModWarefare' folder.
2. Upload the .iwd and .ff files in the download to the new pam4 folder on the server.
3. Set the fs_game dvar in the command line of your server to "mods/pam4"
4. Restart the server.

Version Upgrade:
----------------
1. Stop the server.
2. Delete all .iwd and .ff files from the server's pam4 folder.
3. Upload the new .iwd and .ff files from the downloaded zip to the server's pam4 folder.
4. Restart the server.

Rule Files:
-----------
If you are participating in a League, please make sure you download the latest version of their rule IWD file and install it (ON THE SERVER ONLY) in the SAME directory as the mod.ff and core PAM4 IWD file. 
Each League will have its OWN rule IWD file, so if you participate in more than one League, you will need one from each League.


Credits:
--------
Raf1 for some of the ideas/solutions he developed in Promod.


Known Issues:
-------------
IW Bug: Servers will NOT work if they are attempting to use fs_homepath and/or fs_basepath.  Until IW fixes this bug, PAM4 requires the server to have a full set of its own files (not share files with other servers).
IW Bug: mp_killhouse will NOT work with any mod

Please report any problems at www.wormsworld.net.  
Note that I can NOT help you with League Rule File problems.  Please direct rules discrepancies directly to your League.



Quick Version Update Information:

-------------------------------
*******************************
-------------------------------
PAM4.02 Minor Release
Bug Fixes:
- Weapon Limit issue at halftime is fixed
- Timeout/bomb defuse bug is fixed
- Stock Bug Fix: Sabotage Overtime Scoring bug fixed when bomb explodes AFTER all of the defusing team has already died
- Fixed a bug in the scorebot with the "//" delimiter not showing up right.  Changed the delimiter to "" instead.  Thanks goes to 007sweden for the suggestion!

New:
- Removed obsolete security method since .ff files are no longer secure and moved all files possible to the IWD file
- Patch maps can now have the effects removed (Killhouse does NOT work)
- New IWD file security system will list the loaded IWD files on the server (even server side only IWD files) and show if the devmap is currently running on the server.
- New options for bullet penetration issues.  Bullet Penetration can be turned OFF, or you can set a multiplier for the amount of damage given by bullet penetration.

Promod (Raf1) advances implemented in some form:
- Can disable the auto-aiming capability of the melee attack
- Ability for a player to drop the bomb if playing without multibomb on
- There is an option to have the server automatically configure the clients' dvars for potentially higher FPS and ping values. The downside being that it takes some of the "pretty" out of the game.
- Ability to turn off the player's head bobbing motion

New Dvars:
pam_allow_bullet_penetration [1/0]  //This determines if bullets are allowed to pass through walls or not
pam_penetration_multiplier [0.0/2.0] //This number is multiplied by the amount of damage done by bullets penetrating a wall before hitting a player.  1.0 is stock (which means stock damage)  .9 = 90% damage  1.1 = 110% damage
pam_sd_allow_bomb_drop [1/0]  //If multibomb is off, this will add a menu option in the PAM4 menu to drop the bomb if a player is carrying it
pam_automelee_enable [1/0]  //This can turn off the stock auto-aim function of the melee attack
pam_allow_headbob [1/0] //This can turn off the simulated player head bobbing that occurs while the player is moving around
promod_performance_boost_enabled [1/0] //This forces a number of client side dvars in an attempt to increase FPS and lower ping.  These dvars are STUCK with that player even after he leaves the server, so below is a list of the effected dvars:
	r_desaturation 0
	r_specularcolorscale 0
	r_normalmap 0
	r_smc_enable 0
	r_multigpu 1
	r_distortion 0
	sc_enable 0
	sm_enable 0
	r_dlight_limit 0
	dynent_active 0
	snaps 30
	cl_maxpackets 100
	rate 25000
	cg_nopredict 0
	g_antilag 1






-------------------------------
*******************************
-------------------------------
PAM4.01 Minor Release
Bug Fixes:
Fixed a bug causing Suicide Nades to not work
Fixed a bug with the UAV not being called correctly
Fixed a stock Modwarfare bug that could happen if the server config trys to set an invalid default perk
Fixed a bug that could carry a player's kills over from one map to another
Fixed an issue that could cause a Linux server to crash if a player crashed out of the game (server crashes when player is finally being removed from the server).
Fixed a scoring issue with Last Team Standing (WAR gamestyle)
Fixed a spawning issue with Last Team Standing (WAR) by using S&D spawnpoints
Fixed a bug with pam_sab_ot_maxspawntime when it was set to 0 causing problems in the custom SAB round overtime period.
Fixed a Timeout Bug that was not allowing the defending team to defuse on the round AFTER a timeout.
Fixed a bug with the automatic AFK to Spectate scripting that could occur if a player left the server while being moved to spectate
Fixed a bug with the original ModWarfare class limits scripting causing an error
Fixed a bug with spawn protection damage feedback that could happen if damage was not caused by a player

Added generic pam_modes (pam1, pam2, pam3, pam4) that smaller leagues can use to run competition with until they get large enough to need their own modes.
DVAR change:  pam_war_gamestyle - Now takes a numerical setting rather than a text setting:
    0 (default) = Normal WAR gametype
    1 = Last Team Standing - Team with most players left alive win the round if time runs out
    2 = Last Team Standing - Round ends in a draw if both teams are still alive at the end of the round

Improved Scorebot Engine based on Scorebot makers' input. See: http://www.wormsworld.net/viewtopic.php?f=4&t=510





---------------------------------
*******************************
-------------------------------
PAM4.00 FULL Release New Dvars:

Timeouts are exclusively for MATCH modes only.  Does not work in pub modes.
At this time Timeouts are only in S&D mode (and Last Team Standing actually)
set pam_timeout_limit 0
set pam_timeout_length 120 //(in seconds)

set pam_allow_weather_fx 1  //rain, fog, dust, and flying animals
set pam_allow_fire_fx 1 //fire and smoke (does not effect explosions)
set pam_allow_sound_fx 1 //localized sound fx like leaves in a tree or metal creaking
set pam_allow_light_fx 1 //I don't really know, I just know they are there... lol
set pam_allow_ambient_sound 1 //The background sound that is played throughout the map

Explosive Barrel and Car damage
set pam_allow_explosion_damage 1


REPLACED the following dvar:
set pam_perk_specialty_nade_extra_ammo 2
WITH these dvars:
set pam_perk_specialty_flashnade_extra_ammo 2
set pam_perk_specialty_stunnade_extra_ammo 2

Sab only (changes submitted by CAL|Kyle)
set pam_sab_objective_fade_time 5
set pam_sab_show_bombsites 1
set pam_sab_bomb_carrier_alpha 1
set pam_sab_ot_maxspawntime 60

WAR only
set pam_war_gamestyle "stock" // Other option is "lts" which means Last Team Standing

For PUB mode only:
set pam_allow_favorites_menu 1 //Adds a menu item where players IN your server can click to add the server to their favorites



*******************************
-------------------------------
Beta 3 New Dvars:
set pam_sab_plant_sounds 1

set pam_enable_scorebot 1

Add these to your server start up config file:
sets __Pam_Axis_Score ""
sets __Pam_Allies_Score ""
sets __Pam_Ticker ""
sets __PamMode ""
sets __PamVersion ""
sets __PamModeLong ""

Using the above you can use XFIRE or any external server browser to follow the score and progress of a match.


*******************************
-------------------------------
Beta 2 New Dvars:
SD
pam_remove_briefcase
pam_sd_show_bomb_timer
pam_sd_spawn_protection

SAB
pam_sab_ot_style
pam_sab_ot_spawnincrease
pam_sab_ot_incrementtime
pam_sab_spawn_protection
pam_sab_show_bomb_carrier
pam_sab_objective_ping_delay


DOM
pam_dom_style
pam_dom_capout_bonus
pam_dom_capout_holdtime
pam_dom_spawn_protection
scr_dom_roundswitch

WAR
pam_war_spawn_protection
scr_war_roundswitch

DM
pam_dm_spawn_protection

KOTH
pam_koth_spawn_protection

Generic
pam_switch_teams_at_halftime
pam_autokick_spectators